import { get, post } from '@/utils/operate'

const baseUrl = '/api/search'

export const searchByKeyword = (keyword: string) => {
    return get(`${baseUrl}/${keyword}`)
}

export const searchProducts = (data: string) => {
    return post(`${baseUrl}/product`, data)
}